﻿CloudDisk.Admin.FoldersPanel = (function(cfg){
    var el = $('#foldersPanel');

	
    return {
	    init: function(){
		    el.find('.adm-folders-toolbar button').click(function(){
			    CloudDisk.Admin.FolderSettingWindow.open();
			});
		},
		
		activate: function(){
		    el.show();
		}
	};
})();

CloudDisk.Admin.FolderSettingWindow = (function(){
    var tpl = [
	    '<div class="member_add_dialog ui-dialog-content ui-widget-content" style="display: block; width: auto; min-height: 0px; height: 431px;" scrolltop="0" scrollleft="0">',
            '<h1>输入他们的邮箱，权限和分组<i class="why gktooltip" title="管理员：可以访问管理员后台，邀请成员和建立团队文件夹<br ></i>成员：一般的团队成员，存放文件时使用团队的空间"></i></h1>',
            '<div class="c_f"></div>',
            '<h1>邮件内容</h1>',
			'<textarea class="input_text_radius add_member_desc"></textarea>',
            '<div class="add_member_ops"></div>',
		'</div>'].join('');
	
	return new CloudDisk.Window({
	    title: '邀请成员',
		content: tpl
	});
})();

